package com.jishe.mapper;

import com.jishe.pojo.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface UserMapper {
    //新增用户
    void insert(User user);
//删除用户
    void delete(List<Integer> ids);
    //条件查询用户
    List<User> list(String username, Short gender);
  //更新用户信息
    void update(User user);
@Select("select * from user where username=#{username} and password=#{password}")
    User getUserByUsernameAndPassword(User user);
}
